package day11;

public class ThreadDemo extends Thread{

	public ThreadDemo() {
		
	}
	public ThreadDemo(String name) {
		super(name);
	}
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		ThreadDemo threadDemo = new ThreadDemo("CustomThread");
		threadDemo.start();
		for (int i = 0; i < 60; i++) {
			System.out.println(Thread.currentThread().getName() + "...."+i);
		}
	}

	@Override
	public void run() {
		for (int i = 0; i < 60; i++) {
			System.out.println(Thread.currentThread().getName()+"....."+i);
		}
	}
	
	

}
